#ifndef TREEVIEW_H
#define TREEVIEW_H

#include <QTreeView>

#include "treemodel.h"

class TreeView : public QTreeView
{
    Q_OBJECT

public:
    TreeView(TreeModel *model, QWidget *parent = 0);

    pid_t getCurrentPid() const;

    void setPropShown(TIP prop, bool shown);

    bool isPropShown(TIP prop);

signals:

    void onPropShownToggled(TIP prop, bool shown);

private:

    void setPropWith(TIP prop, int width);

    TreeModel *m_model;

    pid_t m_current_task = 0;
};

#endif // TREEVIEW_H
